package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

/**
 * 菜谱用料对象 ap_cookbook_ingredient
 *
 * @author mars
 * @date 2024-02-24
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "菜谱用料对象")
@Builder
@Accessors(chain = true)
@TableName("ap_cookbook_ingredient")
public class ApCookbookIngredient extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 食谱id
     */
    @Excel(name = "食谱id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "食谱id")
    private String foodId;

    /**
     * 食谱名称
     */
    @ApiModelProperty(value = "食谱名称")
    private String foodName;
    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 数量
     */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量")
    private String amount;
}
